package com.example.visitmanage

import com.example.lib_base.entity.VisisterBean
import com.example.lib_base.entity.VisisterBeanItem
import com.example.lib_base.mvvm.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface APIService {
    @GET("/api/visit-appointments")
    suspend fun getVisister(): Res<VisisterBean>
    @GET("/api/visit-appointments/status/{status}")
    suspend fun getVisisterByStatus(@Path("status")status:String): Res<VisisterBean>
    @POST("/api/visit-appointments")
    suspend fun addVisister(@Body body:RequestBody):Res<VisisterBeanItem>
}